package org.mall.convert;

import org.mall.modules.pojo.shop.*;
import org.mall.modules.shop.entity.Shop;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.Collection;
import java.util.List;

@Mapper
public interface ShopConvert {
    ShopConvert INSTANCE = Mappers.getMapper(ShopConvert.class);

    List<ShopDetailDTO> convert3(List<ShopDTO> shops);

    List<ShopDTO> convert4(List<ShopDTO> list);

    List<ShopDTO> convert1(Collection<Shop> shops);
    List<ShopDTO> convert2(List<Shop> shops);

    Shop convert5(ShopAddDTO addDTO);
    Shop convert6(ShopUpdateDTO updateDTO);

    Shop convert7(ShopDTO shopDTO);

    List<ShopVO> convert8(List<Shop> pageList);
}
